<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.wxtf.platform.plugins.user.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	UserBean user = (UserBean)request.getSession().getAttribute("userBean");
	
	String _db = user.getDbType();
	String userName = user.getUserrelName();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>"/>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta http-equiv="pragma" content="no-cache"/>
		<meta http-equiv="cache-control" content="no-cache"/>
		<meta http-equiv="expires" content="0"/>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>药具随访管理</title>

		<link type="text/css" rel="stylesheet" href="ligerUI/skins/Aqua/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/<%=user.getUserCss()%>/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/ligerui-icons.css" />
		<link type="text/css" rel="stylesheet" href="resource/css/style.css" />

		<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="ligerUI/js/core/base.js"></script>
		<script type="text/javascript" src="ligerUI/js/ligerui.min.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/validata.js"></script>

		<script type="text/javascript" src="ligerUI/js/plugins/ligerGrid.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerTree.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerForm.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerComboBox.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerDateEditor.js"></script>
	    <script src="ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
	    <script src="ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
<script type="text/javascript">
var _db = '<%=_db%>';
var userName = '<%=userName%>';
_jsonObj.classname = "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction";
_jsonObj.methodname = "queryPage";
var manager;
var suifang;
var jilu;
var addData_dialog;
var suifang_dialog;
$(function(){
	manager = $("#grid").ligerGrid({
		url: _url, parms: _jsonObj, width: '100%', height: '100%',enabledSort:false,
		usePager: true, rownumbers: true, checkbox: true, alternatingRow: false,async:false,
		columns: [
			{ display: '是否逾期', name: 'yuqi',width:70, align:'left',render: function(record, index, value, oth){
					var yuqi = record.yuqi==0?record.yuqi+1:record.yuqi;
					if(yuqi - (parseInt(record.tmamvm_lmedicine_time)+1)==0){
						return "否";
					}else{
						return "是";
					}
				}
			},
			{ display: '部门名称', name: 'caption',width:100, align:'left'},
			{ display: 'tbe_id', name: 'tbe_id', hide: 1,width:1 },
			{ display: '受访人姓名', name: 'tbe_name',width:90, align:'left',render: function(record, index, value, oth){
					return "<a href='javascript:edit(" + JSON.stringify(record) + ")'>"+record.tbe_name+"</a>";
				} 
			},
			{ display: '受访人地址', name: 'tbe_address',width:100, align:'left' },
			{ display: 'tmamvm_id', name: 'tmamvm_id', hide: 1,width:1 },
			{ display: 'org_id', name: 'org_id', hide: 1,width:1 },
			{ display: 'tmad_id', name: 'tmad_id', hide: 1,width:1 },
			{ display: 'tmamvm_lmedicine_des', name: 'tmamvm_lmedicine_des', hide: 1,width:1 },
			{ display: 'tmamvm_change_reason', name: 'tmamvm_change_reason', hide: 1,width:1 },
			{ display: 'tmad_begin_time', name: 'tmad_begin_time', hide: 1,width:1 },
			{ display: 'tmamvm_cmedicine_des', name: 'tmamvm_cmedicine_des', hide: 1,width:1 },
			{ display: '填报日期', name: 'tmamvm_date', width: 100, align: 'left' },
			{ display: '使用时间', name: 'tmamvm_lmedicine_time', width: 70, align: 'left' },
			{ display: '药具种类', name: 'tmgd_name',width:100, align:'left' },
			{ display: '药具名称', name: 'tmad_name', width: 100, align: 'left' },
			{ display: '生产厂家', name: 'tmad_company_name',width:100, align:'left'},
			{ display: '登记', name:'edit',width:50,render: function(record, index, value, oth){
					return "<img src='ligerUI/skins/icons/edit.gif' onclick='edit(" + JSON.stringify(record) + ")'></img>";
				}
			},
			{ display: '往年随访记录', name:'wangniansuifangjilu',width:100,render: function(record, index, value, oth){
					return "<img src='ligerUI/skins/icons/search.gif' onclick='wangniansuifangjilu(" + JSON.stringify(record) + ")'></img>";
				}
			}
		],
		toolbar: {
			items: [
				{ text: '删除', click: function(){ delData(); },icon: 'delete'}
			]
		},
		rowAttrRender :function(data,rowindex){
			var yuqi = data.yuqi==0?data.yuqi+1:data.yuqi;
			if(yuqi - (parseInt(data.tmamvm_lmedicine_time)+1)==0){
				
			}else{
				{return "style='background-color:#ffcccc;'"; }
			}
		}
	}); 
	suifang = $("#suifang").ligerGrid({
		url: _url, width: '720', height: '260',enabledSort:false,delayLoad: true,
		usePager: false, rownumbers: true, alternatingRow: true, checkbox: true,async:false,
		columns: [
			{ display: 'tmamvd_id', name: 'tmamvd_id', hide: 1,width:1 },
			{ display: 'tmamvm_id_d', name: 'tmamvm_id_d', hide: 1,width:1 },
			{ display: '随访日期', name: 'tmamvd_time',width:100, align:'left'},
			{ display: '用药效果', name: 'tmamvd_pharmacy_effect',width:100, align:'left'},
			{ display: '同时用药', name: 'tmamvd_same_pharmacy_des',width:80, align:'left',render: function(record, index, value, oth){
					return value=="0"?"否":"是";
				}
			},
			{ display: 'tmamvd_side_effect_code', name: 'tmamvd_side_effect_code', hide: 1,width:1, align:'left' },
			{ display: '副反应(代码)', name: 'tmgd_name',width:120, align:'left' },
			{ display: '处理情况', name: 'tmamvd_treament',width:100, align:'left' },
			{ display: '登记者', name: 'create_by', width: 70, align: 'left' },
			{ display: '编辑', name: 'bianji', width: 50, align: 'left',render: function(record, index, value, oth){
					return "<img src='ligerUI/skins/icons/edit.gif' onclick='bianji(" + JSON.stringify(record) + ")'></img>";
				}
			}
		],
		toolbar: {
			items: [
				{ text: '新建', click: suifangAdd , icon: 'add' },
				{ line: true },
				{ text: '一键随访', click: yijiansuifang , icon: 'add'},
				{ line: true },
				{ text: '删除', click: suifangDel , icon: 'delete'}
			]
		}
	});
	
	jilu = $("#jilu").ligerGrid({
		url: _url, width: '660', height: '260',enabledSort:false,delayLoad: true,
		usePager: true, rownumbers: true, alternatingRow: true,async:false,
		columns: [
			{ display: 'tmamvd_id', name: 'tmamvd_id', hide: 1,width:1 },
			{ display: 'tmamvm_id_d', name: 'tmamvm_id_d', hide: 1,width:1 },
			{ display: '随访日期', name: 'tmamvd_time',width:100, align:'left'},
			{ display: '用药效果', name: 'tmamvd_pharmacy_effect',width:100, align:'left'},
			{ display: '同时用药', name: 'tmamvd_same_pharmacy_des',width:100, align:'left',render: function(record, index, value, oth){
					return value=="0"?"否":"是";
				}
			},
			{ display: 'tmamvd_side_effect_code', name: 'tmamvd_side_effect_code', hide: 1,width:1, align:'left' },
			{ display: '副反应(代码)', name: 'tmgd_name',width:120, align:'left' },
			{ display: '处理情况', name: 'tmamvd_treament',width:100, align:'left' },
			{ display: '登记者', name: 'create_by', width: 70, align: 'left' }
		]
	});
	
	$("#tmamvd_side_effect_code").find("option").remove();
	var param = {
		"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
		"methodname": "selectTmamvdSideEffectCode",
		"logicdata": [],
		"extenddata": []
	};
	callserver(param, function(data, satus){
		$.each(data, function (i, item) {
        	 $("#tmamvd_side_effect_code").append('<option value="'+item.tmad_id+'">'+item.tmad_name+'</option>');
        }); 
	},function(data, satus){
		warningTip(data.resultrecord);
	});
	$("#year").find("option").remove();
	$("#year").append('<option value="">全部</option>');
	for(var i = 2010;i<2030;i++){
    	$("#year").append('<option value="'+i+'">'+i+'</option>');
    }
});
/*
*明细删除
*/
function suifangDel(){
	var str = "";
	//获取选中的复选框
    var rows = suifang.getCheckedRows();
    $(rows).each(function (){
    	str += this.tmamvd_id + ",";
    });
    str=str.substring(0,str.length-1);
	if(str == ""){
		warningTip('请选择');
		return;
	}
	$.ligerDialog.confirm('确定要删除选中的数据吗?', function (opt) { 			
		if(opt){
			_jsonObj.methodname = "detailDelete";
			_jsonObj.logicdata = "[{\"ids\":\"" + str + "\"}]";
			callserver(_jsonObj, function(){ 
			//定义明细的参数
			var param1 = {
				"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
				"methodname": "selectMedicineVistor",
				"logicdata": [],
				"extenddata": []
			};
			param1.logicdata = '[{"tmamvm_id":"'+$("#tmamvm_id").val()+'"}]';
			suifang.loadData();
			 }, function(){});
		}
	});
}
/*
*一键随访记录
*/
function yijiansuifang(){
	document.getElementById('suifangdetail').reset();
	suifang_dialog==null?"":suifang_dialog.hide();
	$("#a1").hide();
	$("#create_by").val(userName);
	suifang_dialog = initWindowByDiv('suifang-div', '随访记录', 320, 200, yijiansuifangadd, closeWin);	
}
function yijiansuifangadd(){
	var create_by = $("#create_by").val().trim();
	var tmamvd_pharmacy_effect = $("#tmamvd_pharmacy_effect").val().trim();
	var tmamvd_treament = $("#tmamvd_treament").val().trim();
	
	
	if('' == tmamvd_pharmacy_effect){warningTip("用药效果：不能为空"); return;}
	if(!checkIsString(tmamvd_pharmacy_effect)){
		warningTip("用药效果：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tmamvd_pharmacy_effect) > 512){
		warningTip("用药效果：不能超过32字符");
		return;
	}
	
	if('' == tmamvd_treament){warningTip("处理情况：不能为空"); return;}
	if(!checkIsString(tmamvd_treament)){
		warningTip("处理情况：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tmamvd_treament) > 512){
		warningTip("处理情况：不能超过32字符");
		return;
	}
	if('' == create_by){warningTip("登记者：不能为空"); return;}
	var tmamvm_id = $("#tmamvm_id").val();
	var tmad_begin_time = $("#tmad_begin_time").val();
	var tmamvm_lmedicine_time = $("#tmamvm_lmedicine_time").val();
	var tmamvd_pharmacy_effect = $("#tmamvd_pharmacy_effect").val();
	var tmamvd_same_pharmacy_des = $("#tmamvd_same_pharmacy_des").val();
	var tmamvd_side_effect_code = $("#tmamvd_side_effect_code").val();
	var tmamvd_treament = $("#tmamvd_treament").val();
	var create_by = $("#create_by").val();
	var param = {
		"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
		"methodname": "yijiansuifang",
		"logicdata": [],
		"extenddata": []
	};
	var yifangweiguoriqi = "";
	$.each(suifang.getData(), function (i, item) {
		yifangweiguoriqi += item.tmamvd_time + ",";
    });
    yifangweiguoriqi = yifangweiguoriqi.substring(0,yifangweiguoriqi.length-1);
	param.logicdata = '[{"tmamvm_id":"'+tmamvm_id+'","tmad_begin_time":"'+tmad_begin_time+'","tmamvm_lmedicine_time":"'+tmamvm_lmedicine_time+'","yifangweiguoriqi":"'+yifangweiguoriqi+'","tmamvd_pharmacy_effect":"'+tmamvd_pharmacy_effect+'","tmamvd_same_pharmacy_des":"'+tmamvd_same_pharmacy_des+'","tmamvd_side_effect_code":"'+tmamvd_side_effect_code+'","tmamvd_treament":"'+tmamvd_treament+'","create_by":"'+create_by+'"}]';
	callserver(param, function(data, satus){
		//定义明细的参数
		var param1 = {
			"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
			"methodname": "selectMedicineVistor",
			"logicdata": [],
			"extenddata": []
		};
		var tmamvm_id = $("#tmamvm_id").val();
		param1.logicdata = '[{"tmamvm_id":"'+tmamvm_id+'"}]';
		suifang.loadData();
		suifang_dialog.hide();
	},function(data, satus){
		warningTip(data.resultrecord);
	});
}
/*
*随访记录
*/
function suifangAdd(){
	var tmamvm_id_d = $("#tmamvm_id").val();
	document.getElementById('suifangdetail').reset();
	$("#tmamvm_id_d").val(tmamvm_id_d);
	suifang_dialog==null?"":suifang_dialog.hide();
	$("#a1").show();
	$("#tmamvd_time").ligerDateEditor({ format: "yyyy-MM-dd", width:182});
	$("#tmamvd_time").val(getCurDateTime().substring(0,getCurDateTime().indexOf(" ")));
	$("#create_by").val(userName);
	$("#tmamvd_id").val("");
	suifang_dialog = initWindowByDiv('suifang-div', '随访记录', 320, 220, add, closeWin);
}

/*
*随访编辑
*/
function bianji(row){
	document.getElementById('suifangdetail').reset();
	$("#a1").show();
	loadForm("suifangdetail", row);
	$("#tmamvd_time").ligerDateEditor({ format: "yyyy-MM-dd", width:182});
	$("#tmamvd_time").val(row.tmamvd_time);
	$("#tmamvm_id_d").val(row.tmamvm_id_d);
	suifang_dialog = initWindowByDiv('suifang-div', '随访记录', 320, 220, add, closeWin);
}
/*
*随访增加
*/
function add(){
	var tmamvm_id = $("#tmamvm_id").val();
	var tmamvd_id = $("#tmamvd_id").val();
	
	
	var create_by = $("#create_by").val().trim();
	var tmamvd_pharmacy_effect = $("#tmamvd_pharmacy_effect").val().trim();
	var tmamvd_treament = $("#tmamvd_treament").val().trim();
	var tmamvd_time = $("#tmamvd_time").val().trim();
	
	if('' == tmamvd_time){warningTip("随访日期：不能为空"); return;}
	
	
	if('' == tmamvd_pharmacy_effect){warningTip("用药效果：不能为空"); return;}
	if(!checkIsString(tmamvd_pharmacy_effect)){
		warningTip("用药效果：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tmamvd_pharmacy_effect) > 512){
		warningTip("用药效果：不能超过32字符");
		return;
	}
	
	if('' == tmamvd_treament){warningTip("处理情况：不能为空"); return;}
	if(!checkIsString(tmamvd_treament)){
		warningTip("处理情况：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tmamvd_treament) > 512){
		warningTip("处理情况：不能超过32字符");
		return;
	}
	if('' == create_by){warningTip("登记者：不能为空"); return;}
		//定义参数
		var param = {
			"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
			"methodname": "",
			"logicdata": [],
			"extenddata": []
		};		
		if(tmamvd_id==""){
			param.methodname = "save";
		}else{
			param.methodname = "update";
		}
		var tmad_begin_time = $("#tmad_begin_time").val();
		var a = getForm("suifangdetail").substring(0,getForm("suifangdetail").length-2);
		a = a + ',"tmad_begin_time":"'+tmad_begin_time+'"}]';
		param.logicdata = a;
		callserver(param, function(data, textStatus){
			if(data.resultrecord.length>5){
				warningTip(data.resultrecord);
				return;
			}
			//定义明细的参数
			var param1 = {
				"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
				"methodname": "selectMedicineVistor",
				"logicdata": [],
				"extenddata": []
			};
			param1.logicdata = '[{"tmamvm_id":"'+tmamvm_id+'"}]';
			suifang.loadData();
			suifang_dialog.hide();
		}, ajaxCallbackErrorFunc);
}
/*
 * 表格刷新
 */
function reload(){
	_jsonObj.methodname = "queryPage"
	manager.loadData();
}

/*
 * ajax成功回调
 */
function ajaxCallbackSuccFunc(data, textStatus){
	succMsgTip(data.resultrecord);
	reload();
	addData_dialog.hide();
	suifang_dialog.hide();
}

/*
 * ajax失败回调
 */
function ajaxCallbackErrorFunc(data, textStatus){
	warningTip(data.resultrecord);
}
/*
*登记
*/
function edit(record){
	document.getElementById('suifangmain').reset();
	loadForm("suifangmain", record);
	$("#tmamvd_id").val(record.tmamvm_id);
	$("#tmamvm_id_d").val(record.tmamvm_id);
	addData_dialog = initWindowByDiv2('add-div', '药具使用随访登记', 750, 480, function(){
		addData_dialog.hide();
		reload();
	});
	var param1 = {
		"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
		"methodname": "selectShiYongShiJian",
		"logicdata": [],
		"extenddata": []
	};
	param1.logicdata = '[{"tmamvm_id":"'+record.tmamvm_id+'"}]';
	callserver(param1, function(data, satus){
		$("#tmamvm_lmedicine_time").val(data.resultrecord);
	},function(data, satus){
		warningTip(data.resultrecord);
	});
	//定义明细的参数
	var param = {
		"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
		"methodname": "selectMedicineVistor",
		"logicdata": [],
		"extenddata": []
	};
	param.logicdata = '[{"tmamvm_id":"'+record.tmamvm_id+'"}]';
	suifang.setOptions({url:_url,parms: param});
}
/*
 * 删除
 */
function delData(){
	var str = "";
	//获取选中的复选框
    var rows = manager.getCheckedRows();
    $(rows).each(function (){
    	str += this.tmamvm_id + ",";
    });
    str=str.substring(0,str.length-1);
	if(str == ""){
		warningTip('请选择');
		return;
	}
	$.ligerDialog.confirm('确定要删除选中的数据吗?', function (opt) { 			
		if(opt){
			_jsonObj.methodname = "delete";
			_jsonObj.logicdata = "[{\"ids\":\"" + str + "\"}]";
			callserver(_jsonObj, function(){ reload(); }, function(){});
		}
	});
}
/*
*往年随访
*/
function wangniansuifangjilu(record){
	$("#tbe_id").val(record.tbe_id);
	initWindowByDiv2('wangniansuifang', '往年随访记录', 690, 360, closeWin);
	var shijian = getCurDateTime();
	var nian = shijian.substring(0,shijian.indexOf("-"));	
	yearChange(nian);
	$("#year").val(nian);
}
function yearChange(p){
	var param = {
		"classname": "com.wxtf.platform.main.contraceptives.TmaMedicineVistorMainAction",
		"methodname": "selectYear",
		"logicdata": [],
		"extenddata": []
	};
	param.logicdata = '[{"year":"'+p+'","tbe_id":"'+$("#tbe_id").val()+'"}]';
	jilu.setOptions({url:_url,parms: param});
}
</script>
</head>
	<body>
		<div id="grid"></div>
		
		<div id="wangniansuifang" style=" display:  none;">
		<input name="tbe_id" id="tbe_id" type="hidden" />
			<table>
				<tr>
					<td>往年随访记录：<select name="year" id="year" style=" width: 182px;" onchange="yearChange(this.value);"></select></td>
				</tr>
				<tr>
					<td colspan="2"><div id="jilu"></div></td>
				</tr>
			</table>
		</div>
		
		<div id="add-div" style=" display: none">
		<form action="suifangmain" id="suifangmain">
		<input name="tmamvm_id" id="tmamvm_id" type="hidden" />
			<table class="form_table">
				<tr>
					<td colspan="4" align="left">
						<div style="border-bottom: 1px solid #EBEBEB; font-weight:bold;height: 28px; line-height: 28px;margin: 0 0 5px;" >
							<img src="ligerUI/skins/icons/communication.gif"/>
							<span>药品信息</span>
						</div>
					</td>
				</tr>
				<tr>
					<td class="form_label">上次用药：</td>
					<td><input class="textbg1" id="tmamvm_lmedicine_des" name="tmamvm_lmedicine_des" readonly="readonly"/></td>
					<td class="form_label">更换原因：</td>
					<td><input class="textbg1" id="tmamvm_change_reason" name="tmamvm_change_reason" readonly="readonly"/></td>
				</tr>
				<tr>
					<td class="form_label">目前用药：</td>
					<td><input class="textbg1" id="tmamvm_cmedicine_des" name="tmamvm_cmedicine_des" readonly="readonly"/></td>
					<td class="form_label">使用时间：</td>
					<td><input class="textbg1" id="tmamvm_lmedicine_time" name="tmamvm_lmedicine_time" readonly="readonly" style=" width: 165px"/>月</td>
				</tr>
				<tr>
					<td class="form_label">开始时间：</td>
					<td><input class="textbg1" id="tmad_begin_time" name="tmad_begin_time" readonly="readonly"/></td>
					<td colspan="2"></td>
				</tr>
				<tr>
					<td colspan="4" align="left">
						<div style="border-bottom: 1px solid #EBEBEB; font-weight:bold;height: 28px; line-height: 28px;margin: 0 0 5px;" >
							<img src="ligerUI/skins/icons/communication.gif"/>
							<span>随访信息</span>
						</div>
					</td>
				</tr>
				<tr>
					<td colspan="4"><div id="suifang"></div></td>
				</tr>
			</table>
		</form>
		</div>
		
		
		<div id="suifang-div" style=" display: none">
		<form name="suifangdetail" id="suifangdetail">
		<input name="tmamvd_id" id="tmamvd_id" type="hidden" />
		<input name="tmamvm_id_d" id="tmamvm_id_d" type="hidden" />
		<input name="tmamvd_memo" id="tmamvd_memo" type="hidden" />
			<table class="form_table">
				<tr id="a1">
					<td class="form_label">随访日期：</td>
					<td><input id="tmamvd_time" name="tmamvd_time" onkeyup="this.value=formatdata(this.value);"/></td>
				</tr>
				<tr>
					<td class="form_label">用药效果：</td>
					<td><input class="textbg1" id="tmamvd_pharmacy_effect" name="tmamvd_pharmacy_effect"/></td>
				</tr>
				<tr>
					<td class="form_label">同时用药：</td>
					<td>
						<select style=" width: 182px;" id="tmamvd_same_pharmacy_des" name="tmamvd_same_pharmacy_des">
							<option value="0" selected="selected">否</option>
							<option value="1">是</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="form_label">副反应代码：</td>
					<td><select style=" width: 182px;" id="tmamvd_side_effect_code" name="tmamvd_side_effect_code"></select></td>
				</tr>
				<tr>
					<td class="form_label">处理情况：</td>
					<td><input class="textbg1" id="tmamvd_treament" name="tmamvd_treament" /></td>
				</tr>
				<tr>
					<td class="form_label">登记者：</td>
					<td><input class="textbg1" id="create_by" name="create_by" readonly="readonly"/></td>
				</tr>
			</table>
		</form>
		</div>
	</body>
</html>
